package k8s

import (
	"kubeimooc/service"
	"kubeimooc/validate"
)

type ApiGroup struct {
	PodApi
	NamespaceApi
	NodeApi
	ConfigMapApi
	SecretApi
	PVApi
	PVCApi
	SCApi
	SvcApi
	IngressApi
	IngRouteApi
	CronJobApi
	JobApi
	DaemonsetApi
	DeploymentApi
	StatefulSetApi
}

// pod参数校验
var podValidate = validate.ValidateGroupApp.PodValidate

// pod业务层
var podService = service.ServiceGroupApp.PodServiceGroup.PodService

// node业务层
var nodeService = service.ServiceGroupApp.NodeServiceGroup.NodeService

// configMap业务层
var configMapService = service.ServiceGroupApp.ConfigMapServiceGroup.ConfigMapService

// secret的业务层
var secretService = service.ServiceGroupApp.SecretServiceGroup.SecretService

/******************volume start**************************/
// pv业务层
var pvService = service.ServiceGroupApp.PVServiceGroup.PVService

// pvc业务层
var pvcService = service.ServiceGroupApp.PVCServiceGroup.PVCService

// sc业务层
var scService = service.ServiceGroupApp.SCServiceGroup.SCService

/******************volume end**************************/

/******************服务发现start**************************/
//service
var svcService = service.ServiceGroupApp.SVCServiceGroup.SVCService

// ingress
var ingressService = service.ServiceGroupApp.IngressServiceGroup.IngressService

// ingroute
var ingRouteService = service.ServiceGroupApp.IngrouteServiceGroup.IngRouteService

/******************服务发现end**************************/

var cronJobService = service.ServiceGroupApp.CronJobServiceGroup.CronJobSetService

var jobService = service.ServiceGroupApp.JobServiceGroup.JobSetService

var daemonsetService = service.ServiceGroupApp.DaemonServiceGroup.DaemonSetService

var deploymentService = service.ServiceGroupApp.DeploymentServiceGroup.DeploymentService

var statefulSetService = service.ServiceGroupApp.StatefulSetServiceGroup.StatefulSetService
